#ifndef OPTICAL_H__
#define OPTICAL_H__
#include "lpc_types.h"


/* FUNCTIONS */

void opticalInit();


/* Positive X indicates forward movement */
int32_t getRelativePositionX();

/* Positive Y indicates right movement */
int32_t getRelativePositionY();

/* Change in angle - to detect whether it's turning (clockwise positive) */
int32_t getAngle();

int32_t getTotalAngle();

int8_t getX();       /* delta x */
int8_t getY();       /* delta y */

#endif
